package com.googlecode.wannabet.domain;

import com.google.appengine.api.datastore.Entity;


public class Bet {
	
	private Integer betID;
	
	private String userID;
	
	private Integer betType;
	
	private Long matchID;
	
	private Long eventID;
	
	private Long subEventID;
	
	private String eventDetails;
	
	private Double amount;

	public static Entity getEntity(String userID, BetType betType, Long matchID, Long eventID, Long subEventID, String eventDetails, Double amount) {
		Entity entity = new Entity(Bet.class.getSimpleName());
		
		entity.setProperty("userID", userID);
		entity.setProperty("betType", betType.ordinal());
		entity.setProperty("matchID", matchID);
		entity.setProperty("eventID", eventID);
		entity.setProperty("subEventID", subEventID);
		entity.setProperty("eventDetails", eventDetails);
		entity.setProperty("amount", amount);
		
		return entity;
	} 

	/**
	 * @return the betID
	 */
	public Integer getBetID() {
		return betID;
	}

	/**
	 * @param betID the betID to set
	 */
	public void setBetID(Integer betID) {
		this.betID = betID;
	}

	/**
	 * @return the betType
	 */
	public Integer getBetType() {
		return betType;
	}

	/**
	 * @param betType the betType to set
	 */
	public void setBetType(Integer betType) {
		this.betType = betType;
	}

	/**
	 * @return the matchID
	 */
	public Long getMatchID() {
		return matchID;
	}

	/**
	 * @param matchID the matchID to set
	 */
	public void setMatchID(Long matchID) {
		this.matchID = matchID;
	}

	/**
	 * @return the eventID
	 */
	public Long getEventID() {
		return eventID;
	}

	/**
	 * @param eventID the eventID to set
	 */
	public void setEventID(Long eventID) {
		this.eventID = eventID;
	}

	/**
	 * @return the subEventID
	 */
	public Long getSubEventID() {
		return subEventID;
	}

	/**
	 * @param subEventID the subEventID to set
	 */
	public void setSubEventID(Long subEventID) {
		this.subEventID = subEventID;
	}

	/**
	 * @return the amount
	 */
	public Double getAmount() {
		return amount;
	}

	/**
	 * @param amount the amount to set
	 */
	public void setAmount(Double amount) {
		this.amount = amount;
	}

	/**
	 * @return the eventDetails
	 */
	public String getEventDetails() {
		return eventDetails;
	}

	/**
	 * @param eventDetails the eventDetails to set
	 */
	public void setEventDetails(String eventDetails) {
		this.eventDetails = eventDetails;
	}

	/**
	 * @return the userID
	 */
	public String getUserID() {
		return userID;
	}

	/**
	 * @param userID the userID to set
	 */
	public void setUserID(String userID) {
		this.userID = userID;
	}

}
